#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:homework3_1.py
# author:wmf
# datetime:2021/4/5 0:45
# software: PyCharm
'''
this is function description
'''
# import module your need

#1 写一个程序，读取键盘输入的任意行文字信息，
# 当输入空行时结束输入，将读入的字符串存于列表;
# 然后将列表里面的内容写入到文件input.txt中；


list1 = []

stopword = ''
str = ''
for line in iter(input,stopword):
    str = str + line + '\n'
list1.append(str)

with open('input.txt','w') as f:
    f.write(''.join(list1))

